numpy fill na with 0

192

numpy fill na with 0 -

import numpy as np

A[np.isnan(A)] = 0

numpy fill with 0 -

mat = np.zeros((4,4), np.int32)

Comments

Submit
0 Comments